package cn.org.guhao.practice.go.model;

public class IntegerTreeNode {

  public IntegerTreeNode(Integer value) {
    this.value = value;
  }

  public IntegerTreeNode(Integer value, IntegerTreeNode left, IntegerTreeNode right) {
    this.value = value;
    this.left = left;
    this.right = right;
  }

  public IntegerTreeNode(IntegerTreeNode left,Integer value) {
    this.value = value;
    this.left = left;
  }

  public IntegerTreeNode(Integer value, IntegerTreeNode right) {
    this.value = value;
    this.right = right;
  }


  private Integer value;

  private IntegerTreeNode left;

  private IntegerTreeNode right;

  public Integer getValue() {
    return value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }

  public IntegerTreeNode getLeft() {
    return left;
  }

  public void setLeft(IntegerTreeNode left) {
    this.left = left;
  }

  public IntegerTreeNode getRight() {
    return right;
  }

  public void setRight(IntegerTreeNode right) {
    this.right = right;
  }
}
